package com.ecfront.pojo;

import java.util.Date;
import java.util.Set;

/**
 * 留言表
 * 
 * @version 1.0
 * @author zhufeng
 */
public class Message {

	private int id;// 留言ID
	private String content;// 留言内容
	private Date date;// 留言时间
	private int type;// 判断留言对象,0为商品，1为店铺
	// 以下为多对一关联
	private User user;// 留言用户
	private GoodsImpl goodssub;// 留言物品
	private Shop shop;// //留言商店
	// 以下是一对一唯一外键关联
	private Reply reply;

	public Message(){}
	public Message(int id, String content, Date date, int type, User user,
			GoodsImpl goodssub, Shop shop, Reply reply) {
		super();
		this.id = id;
		this.content = content;
		this.date = date;
		this.type = type;
		this.user = user;
		this.goodssub = goodssub;
		this.shop = shop;
		this.reply = reply;
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public GoodsImpl getGoodssub() {
		return goodssub;
	}

	public void setGoodssub(GoodsImpl goodssub) {
		this.goodssub = goodssub;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

	public Reply getReply() {
		return reply;
	}

	public void setReply(Reply reply) {
		this.reply = reply;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
